import pandas as pd

if __name__ == '__main__':
    # 尝试用不同的编码读取文件
    df = pd.read_csv('test.csv', encoding='utf-8')

    df.to_csv('res.csv', encoding='gbk', index=False)
